var express = require('express');
var router = express.Router();
let cryptoMsg = require('../util/cryptoMsg.js')
let auth =require('../util/jwt.js')
const userController = require('../controller/userController');
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
})

//获取用户唯一ID
.get('/login',userController.login)
.post('/userinfo',auth,userController.userInfo)
module.exports = router;

